/*
    AuthorNote: ***
    Created By: Bambom Date:DATE
*/

using System;
using UnityEngine;

namespace GameBase
{
    /*资源代理接口*/
    public interface IResources
    {
        void UnloadAsset(string resPath,int count = 1);

        #region 资源读取接口
        
        GameObject AllocGameObject(string resPath);
        void AllocGameObjectAsync(string resPath, Action<GameObject> onLoaded/*, BAsyncOper oper = null*/);
        T LoadResourcesAsset<T>(string resPath) where T: UnityEngine.Object;
        
        #endregion
    } 
}